Using the Query Wizard
The Query Wizard is a series of dialog boxes that you cycle through to create a report query.
To use the Query Wizard:
- 
                                                    Open 4-2 Payable Invoices/Credits or any window where you can recall existing records. 
- 
                                                    On the toolbar, click the Find Records button. 
- 
                                                    In the Query List window, press the New button. 
- 
                                                    Enter a query title in the Query Title field to be displayed at the top of the report and click Next. 
- 
                                                    To select the fields you want to display, in the Layout the Report window, do the following: - 
                                                            In the Tables list, select a database table. 
- 
                                                            In the Fields list, select the fields you want to display. 
- 
                                                            In the bottom panel, you can do the following actions: - Add grouping to the report by dragging columns to the group area in the dark gray band. A maximum of three fields can be used for grouping.
- Add sorting by clicking on a column. The number that appears next to the column name is the next consecutive number after the last group. If no groups are defined, the sort column displays a 1. You can have multiple sorts in the main column row by holding the shift key when clicking additional columns.
- Add sorting by clicking on a column. The number that appears next to the column name is the next consecutive number after the last group. If no groups are defined, the sort column displays a 1. You can have multiple sorts in the main column row by holding the shift key when clicking additional columns.
- Add sorting by clicking on a column. The number that appears next to the column name is the next consecutive number after the last group. If no groups are defined, the sort column displays a 1. You can have multiple sorts in the main column row by holding the shift key when clicking additional columns.
 Repeat steps a through c until you have selected all the tables and fields you want to display in your query, then click Next. 
 
- 
                                                            
- To select the fields by which you want to sort the data, in the Define the Selection Criteria dialog box, do the following:- In the Tables list, select a database table.
- In the Fields list, select the fields by which you want to sort the query results
- In the bottom panel, you can: - Select the comparison option to set as the default. - Note: For example, if you would like the default to be between or equal, you can set that as the default on the report printing window. 
- Lock criteria values to fix those values permanently in the report. - Note: For example, in an invoice report that should exclude voided invoices, lock the invoice status criteria as 'Less than 5-Void.' 
 - Repeat steps a through c until you have selected all the tables and fields by which you want to sort your query results, then click Finish. 
 
- In the Query List window, click the report you want to run, and then click Run.
- Enter any values necessary for the selection criteria presented, and then click Run.